package cn.wolfcode.p2p.base.util;

import javax.servlet.http.HttpServletRequest;

public class MyRequestContextHolder {
    private static ThreadLocal<HttpServletRequest> local = new ThreadLocal<>();

    public static HttpServletRequest getRequestMethod(){
        return local.get();
    }

    public static void setRequestMethod(HttpServletRequest requestMethod){
        local.set(requestMethod);
    }
}
